home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / UNIX.ZIP / XIT / PWD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-14  |  1.4 KB  |  75 lines

  1. /*ident "@(#)cls4:incl-master/proto-headers/pwd.h    1.3" */
  2.  
  3. #ifndef __PWD_H
  4. #define __PWD_H
  5.  
  6.  
  7. #define setpwent ______setpwent
  8. #define endpwent ______endpwent
  9. #define getpwent ______getpwent
  10. #define putpwent ______putpwent
  11. #define getpwuid ______getpwuid
  12. #define getpwnam ______getpwnam
  13. #define fgetpwent ______fgetpwent
  14. #define setpwfile ______setpwfile
  15.  
  16. /*
  17.  *        @(#)pwd.h    7.1    (ULTRIX)    7/22/92
  18.  */
  19.  
  20. #ifndef    _PWD_H_
  21. #define    _PWD_H_
  22.  
  23. #include <sys/types.h>
  24.  
  25. struct    passwd { /* see getpwent(3) */
  26.     char    *pw_name;
  27.     char    *pw_passwd;
  28.     int    pw_uid;
  29.     short    pad;
  30.     int    pw_gid;
  31.     short    pad1;
  32. #ifndef    __SYSTEM_FIVE
  33.     int    pw_quota;    /* ULTRIX, BSD-4.2 */
  34. #else /*    SYSTEM_FIVE */
  35.     char    *pw_age;    /* System V */
  36. #endif /*    __SYSTEM_FIVE */
  37.     char    *pw_comment;
  38.     char    *pw_gecos;
  39.     char    *pw_dir;
  40.     char    *pw_shell;
  41. };
  42.  
  43. #ifndef    _POSIX_SOURCE
  44.  
  45. struct comment {
  46.     char    *c_dept;
  47.     char    *c_name;
  48.     char    *c_acct;
  49.     char    *c_bin;
  50. };
  51. #endif /* _POSIX_SOURCE */
  52.  
  53. struct passwd *getpwent(), *getpwuid(), *getpwnam();
  54.  
  55. #endif /* _PWD_H_ */
  56.  
  57.  
  58. #undef putpwent
  59. #undef getpwnam
  60. #undef endpwent
  61. #undef getpwuid
  62. #undef getpwent
  63. #undef setpwfile
  64. #undef fgetpwent
  65. #undef setpwent
  66.  
  67. extern    struct passwd *getpwent();
  68. extern     struct passwd *getpwnam(const char *);
  69. extern     struct passwd *getpwuid(int);
  70. extern     int setpwent();
  71. extern     int endpwent();
  72. extern     void setpwfile(const char *);
  73.  
  74. #endif
  75.